import Vue from 'vue';
import Router from 'vue-router';
Vue.use(Router);

export default new Router({
	mode: 'hash',
	base: "/",
	routes: [
		{
			// 首页重定向
			path: '/',
			redirect: '/index'
		},
		{
			// 主页
			path: '/index',
			name: 'home',
			component: () => import('../view/index.vue'),
        },{
			path: '/platform',
			name: 'platform',
			component: () => import('../view/platform')
		},{
			path: '/scienceT',
			name: 'scienceT',
			component: () => import('../view/scienceT')
		},{
			path: '/education',
			name: 'education',
			component: () => import('../view/education')
		},{
			path: '/news',
			name: 'news',
			component: () => import('../view/news')
		}
	]
});